package com.xuecheng.api.media.model;

import com.xuecheng.api.media.model.qo.QueryMediaModel;
import com.xuecheng.api.media.model.vo.MediaVO;
import com.xuecheng.common.domain.page.PageRequestParams;
import com.xuecheng.common.domain.page.PageVO;
import com.xuecheng.common.domain.response.RestResponse;
import com.xuecheng.media.entity.MediaDTO;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestBody;

@Api(value = "媒资资源管理",tags = "媒资管理API",description = "上传查询删除视频资源")
public interface MediaApi {

    @ApiOperation("保存媒资信息功能")
    MediaDTO createMedia(@RequestBody MediaVO vo);

    @ApiOperation("查询媒资信息功能")
    PageVO selectMedia(PageRequestParams params, @RequestBody QueryMediaModel model);

    @ApiOperation("预览视频")
    String selectMediaVideo(@PathVariable Long mediaId);

    @ApiOperation("删除媒资信息")
    void deleteMedia(@PathVariable Long mediaId);

    @ApiOperation("查询媒资信息接口--Feign")
    RestResponse<MediaDTO> selectMediaId4s(@PathVariable Long mediaId);
}
